﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="tm_userList.ascx.cs" Inherits="controls_enterpriseList" %>
<center>
    <asp:Panel ID="pnlItemList" runat="server" Width="100%"><TABLE width="100%"><TBODY><TR><TD><asp:GridView id="gvItemList" Width="100%" runat="server" CssClass="table" OnSorting="gvItemList_Sorting" OnPageIndexChanging="gvItemList_PageIndexChanging" DataKeyNames="userId" AutoGenerateColumns="False" AllowSorting="True" AllowPaging="True">
<PagerSettings Mode="NumericFirstLast"></PagerSettings>
<Columns>
<asp:TemplateField><ItemTemplate>
                                    <asp:CheckBox ID="chkItem" runat="server" />
                                    <asp:Label ID="lblUserId" runat="server" Text='<%# Eval("userId") %>' Visible="False"></asp:Label>
                                
</ItemTemplate>

<ItemStyle HorizontalAlign="Center" Width="2%"></ItemStyle>
</asp:TemplateField>
<asp:TemplateField HeaderText="Đơn vị" SortExpression="name"><EditItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("name1") %>'></asp:TextBox>
                                
</EditItemTemplate>
<ItemTemplate>
                                    <asp:HyperLink ID="hlpName1" runat="server" NavigateUrl='<%# GetUserURL(DataBinder.Eval(Container, "DataItem.userId").ToString()) %>' Text='<%# Eval("name").ToString() %>'></asp:HyperLink>
                                    
                                    
                                    <asp:Label ID="lblProQuantity" runat="server" Text='<%# ProQuantity(DataBinder.Eval(Container, "DataItem.userId").ToString()) %>' ToolTip="chào bán|tìm mua" Visible="False"></asp:Label>
                                
</ItemTemplate>

<HeaderStyle HorizontalAlign="Left" VerticalAlign="Middle"></HeaderStyle>

<ItemStyle HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
</asp:TemplateField>
    <asp:BoundField DataField="address" HeaderText="Địa chỉ" SortExpression="address" >
        <HeaderStyle Width="25%" HorizontalAlign="Left" VerticalAlign="Middle" />
    </asp:BoundField>
<asp:BoundField DataField="email" HeaderText="Email" SortExpression="email" Visible="False">
    <ItemStyle Width="15%" />
    <HeaderStyle HorizontalAlign="Left" VerticalAlign="Middle" />
</asp:BoundField>
    <asp:BoundField DataField="registerDate" DataFormatString="{0:d}" HeaderText="Đăng k&#253;"
        SortExpression="registerDate" Visible="False">
        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="8%" />
    </asp:BoundField>
    <asp:BoundField DataField="expireDate" HeaderText="Hết hạn" SortExpression="expireDate"
        Visible="False" DataFormatString="{0:d}">
        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="8%" />
        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
    </asp:BoundField>
<asp:BoundField DataField="status" HeaderText="Trạng th&#225;i" SortExpression="status" Visible="False">
<HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>

<ItemStyle HorizontalAlign="Center" Width="10%"></ItemStyle>
</asp:BoundField>
<asp:TemplateField HeaderText=" "><ItemTemplate>
                                    <asp:HyperLink ID="hplContact" runat="server" ImageUrl="~/images/icon_bulkmail_16px.gif" NavigateUrl='<%# GetContactLink(DataBinder.Eval(Container, "DataItem.userId").ToString(),DataBinder.Eval(Container, "DataItem.userId").ToString()) %>'>HyperLink</asp:HyperLink>
                                
</ItemTemplate>

<ItemStyle HorizontalAlign="Center" Width="3%"></ItemStyle>
</asp:TemplateField>
</Columns>

<PagerStyle HorizontalAlign="Right"></PagerStyle>
</asp:GridView> <asp:CheckBox id="chkCheckAll" runat="server" CssClass="titleText3" Text="Chọn tất cả" OnCheckedChanged="chkCheckAll_CheckedChanged" AutoPostBack="True"></asp:CheckBox></TD></TR><TR><TD><asp:Panel id="pnlBottom" runat="server" Width="100%"><TABLE width="100%"><TBODY>
    <tr>
        <td align="center" colspan="2">
            <asp:Label ID="lblMessage" runat="server" CssClass="titletext3"></asp:Label></td>
    </tr>
    <TR><TD style="WIDTH: 50%;"><asp:Label id="lblStatus" runat="server" CssClass="titletext3" Text="Trạng thái"></asp:Label><asp:DropDownList id="cbStatus" runat="server">
                                    </asp:DropDownList><asp:Button id="btnProcessSelected1" onclick="btnProcessSelected1_Click" runat="server" CssClass="btn" Text="Action1" Font-Bold="True"></asp:Button> <asp:Button id="btnProcessSelected2" onclick="btnProcessSelected2_Click" runat="server" CssClass="btn" Text="Action2" Font-Bold="True" Visible="False"></asp:Button></TD><TD style="TEXT-ALIGN: right" align=right>
                                        <asp:Button ID="btnExport" runat="server" OnClick="btnExport_Click" Text="Excel" CssClass="btn" />&nbsp;</TD></TR></TBODY></TABLE></asp:Panel> </TD></TR>
                                        <tr>
                                            <td>
                                            
       <div runat="server" id="pnlRenewal" visible="False"  >
       <fieldset style="background-color:#CCCCCC;width:50%;">
            <legend><label class="titletext3">Ngày gia hạn</label> </legend>
            <asp:TextBox ID="txtNgayGiaHan" runat="server"></asp:TextBox>
                    <asp:HyperLink ID="hplNgayGiaHan" runat="server" ImageUrl="~/images/calendar.png">
                        <asp:Image ID="imgSearchCalendar" runat="server" ImageUrl="~/images/CalendarAJ.png" /></asp:HyperLink>
        &nbsp; &nbsp;
                    <asp:Button ID="btnNgayGiaHan" runat="server" Text="Đồng ý" CssClass="btn" OnClick="btnNgayGiaHan_Click" />    
        </fieldset> </div>      
                                            </td>
                                        </tr>
                                        </TBODY></TABLE>
                                        
                                        </asp:Panel>
   </center>
